package com.hzw.saas.web.admin.job.task;


import com.hzw.saas.api.rss.IJournalService;
import com.hzw.saas.common.quartz.model.ScheduleJob;
import lombok.SneakyThrows;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


@Service("parseRssTask")
public class ParseRssTask {

    @Resource(name = "journalService")
    private IJournalService journalService;

    @SneakyThrows
    public void parseRss(ScheduleJob scheduleJob) {
        /** rss解析*/
        journalService.parseJob("");
        journalService.refreshES();
    }

}
